#include "Language.h"
#include <QApplication>
#include <QDesktopWidget>
#include "MainWindow.h"

void center(MainWindow& window, int w, int h) {
	QDesktopWidget *desktop = QApplication::desktop();
	int screenWidth = desktop->width();
	int screenHeight = desktop->height();
	window.move((screenWidth-w)/2, (screenHeight - h)/2);
}

int main(int argc, char *argv[]) {
	QApplication app(argc, argv);
	MainWindow window;
	QDesktopWidget *desktop = QApplication::desktop();
	window.resize(desktop->width(), desktop->height());
	center(window,desktop->width(), desktop->height());
	window.setWindowTitle(LEONARD);
	window.show();
	return app.exec();
}
